<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta content="telephone=no" name="format-detection" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>{$chapter[ch_name]}</title>
    <meta name="keywords" content="{$chapter[ch_name]}" />
    <meta name="description" content="{$chapter[ch_name]}" />
    <link href="/novel/css/reading.css" type="text/css" rel="stylesheet" />
    <link href="/novel/css/pagelet_v4_66a8547.css" type="text/css" rel="stylesheet" />
    <link href="/novel/css/weui.min.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="/novel/js/jquery.min.js"></script>
    <script type="text/javascript" src="/novel/js/jquery.cookie.js"></script>
    <style>
        .towx{background: #fff;margin: 24px 10px; }
        .towx>a{display: block;padding: 10px 10px 5px;overflow: hidden;color: #666;}
        .towx>a>div{float: left;}
        .towx>a div:nth-child(1) {
            width: 52px;
            height: 52px;
            overflow: hidden;
        }
        .towx>a div:nth-child(1) img { width: 53px; }
        .towx>a div:nth-child(3) p{padding: 1px 0 0 10px;}
        .towx>a div:nth-child(3) p:nth-child(2){padding:0px 0 0 10px; }
        .towx>a div:nth-child(2){margin:13px 10px 0 0;width:56px;line-height:28px;border:1px solid #04c200;color:#04c200;text-align: center;border-radius: 5px;float: right;font-size: 15px;}

        @media only screen and (max-width: 350px) {.towx>a div:nth-child(2){margin-right:0;}}


        .tochange{background: #f3f3f3;width: 100%;margin-top: 24px; }
        .tochange>p{border-top:1px dashed #ddd;margin-top:24px;}
        .towx>a div:nth-child(1) {
            width: 58px;
            height: 58px;
        }
        .towx>a div:nth-child(1) img {
            width: 58px;
        }
        .towx>a div:nth-child(3) p {
            font-size: 16px;
        }
    </style>
    <script type="text/javascript">
        var fromaid = 245;
        var we_username = "dingdianshuge";
    </script>
    <script type="text/javascript" src="/novel/js/reading.js?v=3"></script>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript">
        $(function () {
            loadWeInfo();
        });

        function loadWeInfo() {
            if (0 == 0) {
                $("#bookContent").show();
                $('#weInfo').hide();
            } else {
                $("#bookContent").hide();
                if ("" == "") {
                    $('#weInfo').show();
                    $(document).attr("title","支持正版,关注我们");
                } else {
                    location.href = "";
                }
            }
        }

        //非强制
        function showWeInfo() {
            $("#bookContent").hide();
            if ("" == "") {
                $('#weInfo').show();
                $(document).attr("title","关注后免费订阅");
            } else {
                location.href = "";
            }
        }

        var weui = {
            alert : function(msg, title, callback) {
                title = title ? title : "温馨提醒";
                var alertHtml = '<div class="js_dialog" style="position: fixed; z-index: 2000; display: none;">';
                alertHtml += '<div class="weui-mask"></div>';
                alertHtml += '<div class="weui-dialog">';
                alertHtml += '    <div class="weui-dialog__hd"><strong class="weui-dialog__title"></strong></div>';
                alertHtml += '    <div class="weui-dialog__bd" style="margin:5px;line-height:1.5;"></div>';
                alertHtml += '    <div class="weui-dialog__ft">';
                alertHtml += '      <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">知道了</a>';
                alertHtml += '  </div>';
                alertHtml += ' </div>';
                alertHtml += '</div>';
                if ($(".js_dialog").length > 0) {
                    $(".js_dialog .weui-dialog__bd").empty();
                } else {
                    $("body").append($(alertHtml));
                }
                var weui_alert = $(".js_dialog");
                weui_alert.show();
                weui_alert.find(".weui-dialog__title").html(title);
                weui_alert.find(".weui-dialog__bd").html(msg);
                weui_alert.find('.weui-dialog__btn').off("click").on('click',
                        function() {
                            weui_alert.hide();
                            if (callback) {
                                callback();
                            }
                        });
            }
        }

        function weSetting() {
            var coverurl = 'http://m.emeixs.com/Share/index/bookid/1304/sharer/57336675/fromaid/245' || document.URL;
            var shareurl = coverurl.replace("m.emeixs.com","share.emeixs.com");
            var covertitle = '最让女人失望的，不是你没钱……而是……' || '豪娶天价新妻';
            var coverimage = 'http://new.emeixs.com/Uploads/2017-03-23/58d37b0b835cb.png' || 'http://new.emeixs.com/Uploads/2017-02-10/589d5f216acfa.jpg';

            wx.config({
                debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
                appId: 'wx68fa7d0c903c0f22', // 必填，公众号的唯一标识
                timestamp: '1503389719', // 必填，生成签名的时间戳
                nonceStr: 'CkuuqGU0J4OLDxDq', // 必填，生成签名的随机串
                signature: '32723867f954509d01d1b3f7669462c66038538a',// 必填，签名，见附录1
                jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
            });

            wx.ready(function(){
                wx.onMenuShareTimeline({
                    title: covertitle, // 分享标题
                    link: shareurl, // 分享链接  window.location.href
                    imgUrl: coverimage, // 分享图标
                    success: function () {
                        weui.alert("亲，感谢对雨慕(作者)的支持<br/>待您的好友阅读后<br/>雨慕将送上诚挚的谢意~","分享朋友圈成功");
                    },
                    cancel: function () {
                    }
                });

                wx.onMenuShareAppMessage({
                    title: covertitle, // 分享标题
                    desc: '老公对宁浅语的意义，应该是他们同住在一个屋檐下，除了偶然在长辈和外人面前秀秀恩爱，他们就像最熟悉的陌生人。可是……经期，老公给她买‘面包’、熬红糖水，给她当暖炉。逛奢侈店被人看不起，老公直接把那间奢侈店驱逐出A市，还让她进最大的奢侈品广场，随便她挑。不是说协议婚姻？不是说他车祸不能人道吗？那夜夜在她床上，对她索取过度的男人是谁？“有一就有二，无三不成礼……”老公邪魅一笑，压了过来。就在宁浅语觉得这样的婚姻生活也不错的时候，他摇身一变，成为了形成这一切的罪魁祸首。“离婚！马上离婚！”她握紧拳头，不能接受这一切都是个骗局……', // 分享描述
                    link: coverurl, // 分享链接  window.location.href
                    imgUrl: coverimage, // 分享图标
                    type: 'link', // 分享类型,music、video或link，不填默认为link
                    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                    success: function () {
                        // 用户确认分享后执行的回调函数
                        weui.alert("亲，感谢对雨慕(作者)的支持<br/>待您的好友阅读后<br/>雨慕将送上诚挚的谢意~","分享成功");
                    },
                    cancel: function () {
                    }
                });
            });
        }

        function sign_show() {
            if ('' == '1') {
                weui.alert("每日首次阅读，赠送<span style='color:red'>30</span>阅读币<br/><br/>请明日继续签到哦~<br/><br/><br/>分享本章将有更多惊喜，一般人我不告诉他呦~","签到成功");
            }
        }

        $(function () {
            weSetting();
            sign_show();
        });
    </script>
</head>
<body>
<article id="pageletArticleContent" class="box">
    <div id="bookContent" class="article-detail">
        <h1 class="title">{$chapter[ch_name]}</h1>
        <div class="pgc-bar-top clearfix">

        </div>
        {$chapter[ch_content]}
        <table width="100%" class="qiehuan">
            <tr>
                <td width="85%"><a href="/index/getChapter?id={$next_id}&prid={$prid}&fromaid={$fromaid}">下一章</a></td>
                <td width="3%">&nbsp;</td>
                <!--<td width="12%"><a href="/index/getChapterList?id={$chapter[book_id]}" id="menu">菜单</a></td>-->
                <td width="12%"><a href="javascript:$('.zongcaidan').show();" id="menu">菜单</a></td>
            </tr>
        </table>
    </div>
    <div id='weInfo' style="top:150px;display: none">
        <br/><br/><br/>
        <div style="text-align:center;font-size:1.4em;color:red">关注作者授权公众号继续阅读，获海量阅读币</div>
        <div style="color:#999999;margin:2px;text-align:center;font-size:0.8em;">由于版权问题，请关注后继续阅读</div>
        <div class="content" style="text-align:center;">
            <img src="http://open.weixin.qq.com/qr/code/?username=badianshuge" width="250em" height="250em" style="margin:5px">
        </div>
        <div style="text-align:center;font-size:1em;color:red">长按上图识别二维码关注</div>
        <div style="margin:2px;text-align:center;font-size:1em;color:black">或搜索“badianshuge”关注“八点书阁”</div>
    </div>
    <div class="zongcaidan" style="display: none">
      <table width="100%" class='content_menu'>
           <tr class="content_menushang">
               <td width="22%"><a href="javascript:history.back(-1)" style="background-color: #e763a4;color: #FFFFFF;" id="ona">上一章</a></td>
               <td width="4%">&nbsp;</td>
               <td width="22%"><a href="/index/getBook?id={$book_id}" id="zuopin">返回作品</a></td>
                <td width="4%">&nbsp;</td>
               <td width="22%"><a href="/index/getChapterList?id={$chapter[book_id]}" id="mulus">返回目录</a></td>
               <td width="4%">&nbsp;</td>
               <td width="22%"><a href="/index/index" id="shouye">返回首页</a></td>
               </tr>
        </table>
        <div class=\"shezhi\">
              <span>字体大小</span>
              <ul class="ziti_ziti">
                   <li class="on" id="14">字</li>
                   <li class="xiao" id="16">字</li>
                   <li class="zhong" id="18">字</li>
                   <li class="da" id="20">字</li>
                 </ul>
             <span>背景颜色</span>
             <ul class="ziti_beijing">
                  <li class="baitian on" id="bai">默认</li>
                  <li class="heiye" id="hei">黑夜</li>
                  <li class="moren" id="moren">柔色</li>
                </ul>
         </div>
    </div>
</article>
<div style='display:none'>
    <script src="https://s4.cnzz.com/z_stat.php?id={$cnzz}&web_id={$cnzz}" language="JavaScript"></script>
</div>
</body>
</html>